//
//  TNCityTableViewCell.m
//  TravelNotes
//
//  Created by 黄锋 on 15/8/11.
//  Copyright (c) 2015年 王浩宇. All rights reserved.
//

#import "TNCityTableViewCell.h"
#import "Macro.h"

@implementation TNCityTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _name = [[UILabel alloc] initWithFrame:CGRectMake(20, 10, 150, 20)];
        _name.font = [UIFont systemFontOfSize:15];
        [self.contentView addSubview:_name];
        _image = [[UIImageView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH - 40, 10, 20, 20)];
        [self.contentView addSubview:_image];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}

@end
